package com.wanxi.test;

import java.util.Scanner;

public class UsernamePassword {
    public static void main(String[] args) {
        /**
         * 1.用户输入接口
         * 2.提示用户输入信息
         * 3.接收用户的用户名和密码
         * 4.设定一个初始用户名和密码
         * 5.判断
         * 6.打印
         */
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入用户名");
        String name = scanner.next();
        System.out.println("请输入密码");
        int pass = scanner.nextInt();
        String username = "admin";
        int password = 111111;
        if (name.equals(username) && pass == password) {
            System.out.println("输入正确");
        } else {
            System.out.println("错误");
        }
    }
}
